package com.itany.corejava.day10;



import com.itany.corejava.day07.Baby;
import com.itany.corejava.day07.Person;

import java.util.Arrays;
import java.util.List;

public class Test2 {

    public static void main(String... args) {
        String[] s={"asdfsad","hdfh","utyu"};
        f(s);
        System.out.println("--------------------");
        f();
        System.out.println("--------------------");
        f("hhh");
        System.out.println("--------------------");
        f("edtgdfsg","wertert","qweq");
        System.out.println("--------------------");
        f(123,"aaa","bbb","ccc");


    }


    public static void f(String... s){
        System.out.println("s = " + s);
        System.out.println("Arrays.toString(s) = " + Arrays.toString(s));
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);
        }
    }

    public static void f(int n,String... s){
        System.out.println("n = " + n);
        System.out.println("s = " + s);
        System.out.println("Arrays.toString(s) = " + Arrays.toString(s));
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);
        }
    }

    // public static void f(String n,String... s){
    //     System.out.println("n = " + n);
    //     System.out.println("s = " + s);
    //     System.out.println("Arrays.toString(s) = " + Arrays.toString(s));
    //     for (int i = 0; i < s.length; i++) {
    //         System.out.println(s[i]);
    //     }
    // }

    // public static void f(String... s,int n){
    //     System.out.println("n = " + n);
    //     System.out.println("s = " + s);
    //     System.out.println("Arrays.toString(s) = " + Arrays.toString(s));
    //     for (int i = 0; i < s.length; i++) {
    //         System.out.println(s[i]);
    //     }
    // }

}
